import { createRouter, createWebHistory } from "vue-router";
import type { RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/index",
    name: "index",
    component: () => import("../pages/IndexPage.vue"),
    meta: {
      keepAlive: true,
    },
  },
];

const router = createRouter({
  routes: routes,
  history: createWebHistory(),
});

export default router;
